<!DOCTYPE>
<html>
<head>
    <meta name="robots" content="noindex, nofollow, noarchive"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title><?php echo $msg?></title>
    <style>
        body {
            padding: 0;
            margin: 0;
            font-family: Arial, Helvetica, sans-serif;
            color: #5E5E5E;
        }
        #container {
            width: 1024px;
            margin: 2%;
        }
        .bg1 {
            background-color: #FFFFCC;
        }
        .bg2 {
            background-color: #EEEEEE;
        }
        .table {
            background: #AAAAAA;
            font: 11pt Menlo, Consolas, "Lucida Console"
        }

        .info {
            background: none repeat scroll 0 0 #F3F3F3;
            border: 0px solid #aaaaaa;
            border-radius: 10px 10px 10px 10px;
            color: #000000;
            font-size: 11pt;
            line-height: 160%;
            margin-bottom: 1em;
            padding: 1em;
        }
    </style>
</head>
<body>

<div id="container">
    <div class="info"><p><strong><?php echo $msg;?></strong></p>
        <table cellpadding="5" cellspacing="1" width="100%" class="table">
            <tbody>
            <tr class="bg2">
                <td>No.</td>
                <td>File</td>
                <td>Line</td>
                <td>Code</td>
            </tr>
            <?php
            $traces = debug_backtrace();
            foreach($traces as $k => $trace){
                ?>
            <tr class="bg1">
                <td><?php echo $k+1;?></td>
                <td><?php echo $trace['file']; ?></td>
                <td><?php echo $trace['line']; ?></td>
                <td><?php echo $trace['class'] . '   ' . $trace['function']; ?></td>
            </tr>
                <?php } ?>
            </tbody>
        </table>
    </div>
</div>
</body>
</html>